Optimal. Leaf size=345 \[ \frac {\log (\cos (e+f x)) \tan (e+f x)}{a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}+\frac {5 \log (1-\sec (e+f x)) \tan (e+f x)}{16 a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}+\frac {11 \log (1+\sec (e+f x)) \tan (e+f x)}{16 a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{8 a^2 c f (1-\sec (e+f x)) \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{8 a^2 c f (1+\sec (e+f x))^2 \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{2 a^2 c f (1+\sec (e+f x)) \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 345, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.067, Rules used = {3997, 90}
\begin {gather*} -\frac {\tan (e+f x)}{8 a^2 c f (1-\sec (e+f x)) \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{2 a^2 c f (\sec (e+f x)+1) \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{8 a^2 c f (\sec (e+f x)+1)^2 \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}+\frac {5 \tan (e+f x) \log (1-\sec (e+f x))}{16 a^2 c f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}+\frac {11 \tan (e+f x) \log (\sec (e+f x)+1)}{16 a^2 c f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}}+\frac {\tan (e+f x) \log (\cos (e+f x))}{a^2 c f \sqrt {a \sec (e+f x)+a} \sqrt {c-c \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 90
Rule 3997
Rubi steps
\begin {align*} \int \frac {1}{(a+a \sec (e+f x))^{5/2} (c-c \sec (e+f x))^{3/2}} \, dx &=-\frac {(a c \tan (e+f x)) \text {Subst}\left (\int \frac {1}{x (a+a x)^3 (c-c x)^2} \, dx,x,\sec (e+f x)\right )}{f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}\\ &=-\frac {(a c \tan (e+f x)) \text {Subst}\left (\int \left (\frac {1}{8 a^3 c^2 (-1+x)^2}-\frac {5}{16 a^3 c^2 (-1+x)}+\frac {1}{a^3 c^2 x}-\frac {1}{4 a^3 c^2 (1+x)^3}-\frac {1}{2 a^3 c^2 (1+x)^2}-\frac {11}{16 a^3 c^2 (1+x)}\right ) \, dx,x,\sec (e+f x)\right )}{f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}\\ &=\frac {\log (\cos (e+f x)) \tan (e+f x)}{a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}+\frac {5 \log (1-\sec (e+f x)) \tan (e+f x)}{16 a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}+\frac {11 \log (1+\sec (e+f x)) \tan (e+f x)}{16 a^2 c f \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{8 a^2 c f (1-\sec (e+f x)) \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{8 a^2 c f (1+\sec (e+f x))^2 \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}-\frac {\tan (e+f x)}{2 a^2 c f (1+\sec (e+f x)) \sqrt {a+a \sec (e+f x)} \sqrt {c-c \sec (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 2.44, size = 275, normalized size = 0.80 \begin {gather*} \frac {\left (-14+16 i f x-8 i f x \cos (3 (e+f x))-10 \log \left (1-e^{i (e+f x)}\right )+5 \cos (3 (e+f x)) \log \left (1-e^{i (e+f x)}\right )+\cos (e+f x) \left (-12+8 i f x-5 \log \left (1-e^{i (e+f x)}\right )-11 \log \left (1+e^{i (e+f x)}\right )\right )-22 \log \left (1+e^{i (e+f x)}\right )+11 \cos (3 (e+f x)) \log \left (1+e^{i (e+f x)}\right )+2 \cos (2 (e+f x)) \left (5-8 i f x+5 \log \left (1-e^{i (e+f x)}\right )+11 \log \left (1+e^{i (e+f x)}\right )\right )\right ) \tan (e+f x)}{32 a^2 c f (-1+\cos (e+f x)) (1+\cos (e+f x))^2 \sqrt {a (1+\sec (e+f x))} \sqrt {c-c \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.27, size = 284, normalized size = 0.82
method | result | size |
default | \(-\frac {\left (20 \left (\cos ^{3}\left (f x +e \right )\right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-32 \left (\cos ^{3}\left (f x +e \right )\right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-13 \left (\cos ^{3}\left (f x +e \right )\right )+20 \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-32 \left (\cos ^{2}\left (f x +e \right )\right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+7 \left (\cos ^{2}\left (f x +e \right )\right )-20 \cos \left (f x +e \right ) \ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+32 \cos \left (f x +e \right ) \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )+\cos \left (f x +e \right )-20 \ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+32 \ln \left (\frac {2}{\cos \left (f x +e \right )+1}\right )-11\right ) \sqrt {\frac {a \left (\cos \left (f x +e \right )+1\right )}{\cos \left (f x +e \right )}}\, \left (\cos ^{2}\left (f x +e \right )\right ) \left (\frac {c \left (-1+\cos \left (f x +e \right )\right )}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}}}{32 f \,c^{3} \sin \left (f x +e \right )^{5} a^{3}}\) | \(284\) |
risch | \(\frac {\left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) x}{a^{2} c \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}}-\frac {2 \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) \left (f x +e \right )}{a^{2} c \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, f}-\frac {i \left (5 \,{\mathrm e}^{5 i \left (f x +e \right )}-6 \,{\mathrm e}^{4 i \left (f x +e \right )}-14 \,{\mathrm e}^{3 i \left (f x +e \right )}-6 \,{\mathrm e}^{2 i \left (f x +e \right )}+5 \,{\mathrm e}^{i \left (f x +e \right )}\right )}{4 a^{2} c \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{3} \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) \sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, f}-\frac {5 i \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) \ln \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )}{8 a^{2} c \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, f}-\frac {11 i \left ({\mathrm e}^{i \left (f x +e \right )}+1\right ) \left ({\mathrm e}^{i \left (f x +e \right )}-1\right ) \ln \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )}{8 a^{2} c \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \sqrt {\frac {a \left ({\mathrm e}^{i \left (f x +e \right )}+1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, \sqrt {\frac {c \left ({\mathrm e}^{i \left (f x +e \right )}-1\right )^{2}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}}\, f}\) | \(621\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 4644 vs.
\(2 (333) = 666\).
time = 3.36, size = 4644, normalized size = 13.46 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.02, size = 193, normalized size = 0.56 \begin {gather*} -\frac {\frac {10 \, \log \left ({\left | c \right |} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}\right )}{\sqrt {-a c} a^{2} {\left | c \right |}} + \frac {32 \, \sqrt {-a c} \log \left ({\left | c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + c \right |}\right )}{a^{3} c {\left | c \right |}} - \frac {2 \, {\left (5 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}}{\sqrt {-a c} a^{2} c {\left | c \right |} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2}} + \frac {{\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )}^{2} \sqrt {-a c} a^{3} c^{3} {\left | c \right |} - 8 \, {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c\right )} \sqrt {-a c} a^{3} c^{4} {\left | c \right |}}{a^{6} c^{8}}}{32 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{{\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{5/2}\,{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________